package com.hoas.quickstart.threads.chapter02.chapter02_2_16_02;



public class ThreadB extends Thread {

    private Service service;

    private UserInfo userInfo;

    public ThreadB(Service service, UserInfo userInfo) {
        this.service = service;
        this.userInfo = userInfo;
    }

    @Override
    public void run() {
        super.run();
        service.methodA( userInfo );
    }
}
